package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the per_pms_y_ywxq database table.
 * 
 */
@Entity
@Table(name="per_pms_y_ywxq")
@NamedQuery(name="PerPmsYYwxq.findAll", query="SELECT p FROM PerPmsYYwxq p")
public class PerPmsYYwxq implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int ywxqid;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp;

	//bi-directional many-to-one association to PerPmsYBun
	@ManyToOne
	@JoinColumn(name="BUNID")
	private PerPmsYBun perPmsYBun;

	public PerPmsYYwxq() {
	}

	public int getYwxqid() {
		return this.ywxqid;
	}

	public void setYwxqid(int ywxqid) {
		this.ywxqid = ywxqid;
	}

	public PerPmsEmp getPerPmsEmp() {
		return this.perPmsEmp;
	}

	public void setPerPmsEmp(PerPmsEmp perPmsEmp) {
		this.perPmsEmp = perPmsEmp;
	}

	public PerPmsYBun getPerPmsYBun() {
		return this.perPmsYBun;
	}

	public void setPerPmsYBun(PerPmsYBun perPmsYBun) {
		this.perPmsYBun = perPmsYBun;
	}

}